package {
	import UIFree.uif_draw;
	
	import UIUtils.uif_util;
	
	import api_servers.pi_servers;
	
	import cardsbody.pi_multicard;
	import cardsbody.pi_pjc;
	import cardsbody.pi_pngcard;
	
	import editor.pi_maskInfo;
	
	import flash.filters.ColorMatrixFilter;
	
	public class pi_data extends Object {
		import flash.geom.ColorTransform;
		import flash.geom.Rectangle;
//		public static var 	DEFAULT_MASK: int 	= 5030;//1671;
		public static const TESTMODE: Boolean 	= false;
		
		public static const EFFECTS_PRICE: Number	= 10;
		public static const FROMFRIENDPRICE  : int 	= 10;
		
		public static const APPNAME: String = 'Прикольное оформление ваших фотографий';
//		public static var USERSNOINSTALL: String = 'Пользователи %s еще не установили приложение!\nОтправьте им приглашение кнопкой "Пригласить друзей", тогда они смогут посмотреть вашу открытку';
		public static var USERSNOINSTALL: String = 'Некоторые из выбранных пользователей еще не установили приложение "' + APPNAME + '"!\nОтправьте им приглашение кнопкой "Пригласить друзей", тогда они смогут посмотреть вашу открытку';
//		public static const INVITEDESC: String = '<b>10 руб. на ваш счет</b> за каждого друга, установившего приложение по вашему приглашению.';
		public static const INVITECAPTION: String = 'Пригласить друзей';
		public static const WARNING: String = 'Внимание!';
		public static const ERROR: String = 'Ошибка!';
		public static const REBOOT_INSTRUCTION: String = 'Попробуйте обновить страницу и повторить операцию позже.'; 
		public static const ERRORLOADBOX: String = 'Не могу загрузить список ваших открыток!\n' + REBOOT_INSTRUCTION;
		public static const EMPTYBOX: String	= 'Список пуст';
		public static const SERVERNOACCESS: String = 'Сервер приложения не отвечает\n' + REBOOT_INSTRUCTION;
//		public static const SERVERSERVICED: String = '<font color="#AA0000">Временно недоступен список входящих открыток.</font>\nСервер находится на обслуживании. Просим прощения за доставленные неудобства, надеемся на ваше понимание.';
		public static const MESSAGE: String = 'Сообщение';
//		public static const ERROR_APPNOTPROFILE: String = 'Добавьте приложение в "Мой Мир"!\nчтобы иметь возможность:\n<ul><li>Создавать открытки со своим фото или друга.</li><li>Вставлять открытки в гостевые книги.</li><li>Сохранять плод своего творчества в альбом или на компьютер</li></ul>';
		public static const ERROR_SERVER: String = '<font size="16" color="#FF0000"><b>Ошибка передачи данных</b></font>\n%s\n' + REBOOT_INSTRUCTION;
		public static const USERSENDCARDVIEW: String = 'посмотреть открытку';
		public static const USERSENDCARDTEXT: String = 'для %s, кликни на ссылке что бы посмотреть.';
		public static const USERSENDMESSAGE: String = 'Отправлена открытка';
		public static const SENDOK: String			= 'Открытка успешно отправлена!'; 
		public static const SELECTFRIENDFROMSEND: String = 'Выберите друзей, кому бы вы хотели отправить открытку';
		public static const BADLINK: String = 'Неверная ссылка, или открытка удалена';
		public static const CREATECARD: String = 'Создать открытку';
		public static const INBOX: String = 'Входящие открытки';
		public static const INBOXDESCRIPTION: String = 'Чтобы посмотреть присланную вам открытку, кликните на ней курсором мышки.\nО вас помнят близкие вам люди, эти открытки скромное тому подтверждение. Дарите им в ответ свое внимание и любовь.';
		public static const OUTBOXDESCRIPTION: String = 'В списке «Исходящие открытки» находятся открытки еще не полученные адресатом.\nЧтобы посмотреть открытку, кликните на ней курсором мыши.';
		public static const TEMPLATES: String = 'Шаблоны';
		public static const USERPHOTOS: String = 'Ваши фотографии';
		public static const FULLVIEWCARD: String = 'Полный размер';
		public static const FULLVIEWCARDCANCEL: String = 'Режим редак.';
		public static const EFFECTS: String = 'Добавить эффект';
		public static const EFFECTTITLE: String = 'Эффект';
		public static const SENDCARD: String = 'Отправить открытку';
		public static const OUTBOX: String = 'Исходящие открытки';
		public static const SELECTPHOTOHELP: String = 'Выберите фотографию из альбома\n(фотографии внизу).';
		public static const BALANCE: String = 'Ваш баланс';
		public static const ADDBALANCE: String = 'Пополнить счет'; 
		public static const PRICE: String = 'Цена';
		public static const FRIEND: String = 'Друзья';
		public static const SEARCH: String = 'Поиск';
		public static const ORDERDESC: String = 'Вы покупаете возможность <b>в течение суток</b> отправлять выбранную вами открытку, любому количеству друзей.';
		public static const GETLINK: String 		= 'Ссылка на открытку';
//		public static const LINKHELP: String 		= 'Эту ссылку, на вашу открытку, вы можете передавать своим друзьям, да же если у них не установлено приложение. <font color="#00AA00">Нажмите <b>Ctrl+C</b> что бы скопировать ссылку в буфер обмена.</font>';
		public static const PAYDIALOGTITLE: String 	= 'Пополнение счета';
//		public static const PAYDESCRIPTION: String 	= '<b>После проведения платежа нажмите кнопку «ок», или просто закройте это сообщение.</b>\nЕсли у вас не появилось окно с номером телефона для СМС сообщения, или окно выбора платежной системы, тогда у вас в настройках браузера отключено использование iframe или (и) JavaScript. Измените настройки для успешного проведения платежа.';
		public static const PAYBADTEXT: String 		= 'Если вы провели платеж, но ваш баланс в приложении остался прежним, сообщите об ошибке по ICQ 347468347 или на email: <a href="mailto:fwadim@mail.ru">fwadim@mail.ru</a>. Мы исправим эту ошибку.';
		public static const PAYBADLABEL: String 	= 'Платеж не прошел?';
		public static const COLLECTFILE: String 	= 'Сохранить в файл';
		public static const FILEDOWNLOAD: String 	= 'Вы можете скачать вашу открытку. Скопируйте адрес и поместите в адресную строку вашего браузера (нажмите Ctrl+C). Или просто нажмите кнопку "Ок".\nСсылка будет действительна в течение суток.';
		public static const LOWFLASHPLAYER: String 				= 'Для корректной работы приложения требуется Flash Player версии не ниже 9-ой. Пожалуйста, установите последнюю версию, которую можно скачать на сайте adobe.com';
		public static const CANCEL: String 						= 'Отмена';
		public static const SELECTPHOTOTEXT: String				= '<b>Вначале выберите фотографию из линейки фотографий внизу.</b>\nЕсли у вас не отображается ни одной фотографии, значит у вас нет доступного альбома. Создайте в «Моем мире» альбом с общим доступом и закачайте туда фотографии.';
		public static const REQUIREVERSIONFP: String			= 'требуется Flash Player версии не ниже %s-й. Вы можете установить последнюю версию Flash Player на сайте http://adobe.com.';
		public static const REQUIREVERSION: String				= 'Для этой открытки ' + REQUIREVERSIONFP;
		public static const REQUIREVERSIONEFFECT: String		= 'Для этого эффекта ' + REQUIREVERSIONFP;
		public static const NOALBUMS: String 					= 'Нет альбомов';
		public static const NOALBUMMESSAGE: String 				= '<font color="#FF0000">' + NOALBUMS + '</font>\nДля того, чтобы другие пользователи могли получать ваши открытки, следует сделать доступ «все пользователи» для альбомов, фотографии из которых вы хотите использовать в открытках.';
/*		public static const PAYFROMEFFECTSDESC: String			= 'В открытке вы использовали платный визуальный эффект, стоимость использования эффектов ' + EFFECTS_PRICE + ' руб. за сутки. В течение суток с момента снятия этой суммы с вашего счета, вам будут доступны к отправке любые эффекты.\n';
		public static const PAYEFFECTSDESC: String				= PAYFROMEFFECTSDESC + '<b>Вы хотите приобрести возможность использовать эффекты?</b>';*/
		public static const EFFECTSSPEC: String 				= 'Представленные эффекты вы можете использовать в отправляемых друзьям открытках. Скачиваются открытки без эффектов.';
		public static const PHOTONOTACCESS: String				= '<b><font color="#FF0000">Нет доступа к файлу, либо он был удален!</font></b>\n(%s)\nЧто бы фотография стала доступна для просмотра, следует изменить доступ к альбому, в котором она находится.';
		public static const DELETECARDIS: String				= 'Вы действительно хотите удалить выбранную открытку?';
//		public static const LIVEFILEWARNING: String				= 'Время жизни открытки, при использовании фотографии загруженной из приложения, ограничено одной неделью. Используйте фотографии из альбомов для неограниченного существования открытки.';
		public static const SAVED: String 						= '<font color="#008800"><b>Файл %s</b>\nуспешно сохранен!</font>';		
		public static const SAVEDESCR: String 					= 'Сохранить открытку в файл?';
		public static const SAVENOW: String						= 'Сохранить сейчас!';
		public static const DEFAULTPHOTO: String				= 'empty_01.jpg';
		public static const JPGWAIT: String						= 'Формирование JPG файла. Подождите, пожалуйста, несколько секунд.';
		public static const SENDMULTICARDDYNAMIC: String		= 'Отправка двойных открыток с подгруженными фотографиями не поддерживается, пожалуйста, используйте для отправки фотографии из своих альбомов.';
		public static const DEVMESSAGE			: String		= 'Пожалуйста сообщите об ошибке разработчику: <a href="mailto:fwadim@mail.ru">fwadim@mail.ru</a>';
		public static const REPLYCARD			: String 		= 'Ответить открыткой';
		
/* Пути */
//		public static const LOCAL_URL: String 		= 'http://game_l.ru/games/data/cards';
		
		public static const USERS_PERLINE: int 		= 2;
		public static const FRIEND_QUERYID: String 	= 'FRIEND_QUERYID'; 
		public static const START_REQUEST: String 	= 'STAT_REQUEST';
		
		public static const TA_ORDER_START: int = 200;	// Начальный индекс транзакция купленных открыток
		public static const TA_ORDER_SPACE: int = 1800; 
		public static const TA_ORDERTIMELIMIT_SERVICE: int = TA_ORDER_START + TA_ORDER_SPACE + 1; // Индекс транзакции оплаченных скачиваний за сутки
		public static const TA_FROMFRIEND: int 		= 2002;
		public static const TA_PRESENTFROMCODE: int = 2003;
		
		public static const TA_MOUNT1SERT: int		= 2004;
		public static const TA_MOUNT2SERT: int		= 2006;
		public static const TA_MOUNT3SERT: int		= 2007;
		
		
		public static const FLASH_PRICE: Number 	= 50;
		public static var	pext: String			= '.jpg';
/*		private static var svGroup: Array = [
			6165,6129,6101,6042,6040,4958,4957,4927,4926,4925,4924,4852,4821,4819,4818,5054,5053,
			5052,4749,4748,6217,6218,6219,6221,6222,6223,6224,6225,6246,6247,6247,6249,6250,6251,
			6252,6253,6270,6271,6272,6325,6326,6327,6328,6329,6330,6331,6350,6351,6376,6377,6378,
			6379,6380,6381,6405,6406,6407,6408,6409,6410,12082,12059,12058,12056,12055,12053,12052,
			12051,12050,12045,12046,12036,12035,12034,12032,12031,12030,12029,12028,12027,12026,
			12083,12084
			
		];*/
		
//		Группа открыток на 23 февраля
/*
		public static var Group23: Array = [
			6355,6353,6354,6352,6301,6299,6300,6298,6296,6130,6128,6102,6100,6099,6080,6081,6079,
			6078,6077,4971,4972,4970,6471,6472,6473,6474,6475,6476,6491,6492,6493,
			6507,6508,6509,6525,6526,6527,6528,6529,6530,6531,6532,6533,6547,6548,6549,6550,6551,
			6552,6553,6554,6555,6556,6557,6558,6559,6560,6561,6562,6563,[6575,6590],6598,[6603,6605],
			12163,12164,12170,12171
		];*/
		
//		Группа открыток на 8 Марта
		public static var Group8: Array = [
			[6744,6750],[6723,6727],[6690,6694],[6717,6721],6688,
			[6668,6677],6484,6485,4431,[6786,6793],[6797,6800],
			[6818,6825],[6843,6847],[6854,6857],[6877,6886],[6877,6886],
			[6891,6893],[6940,6986],12297,[12324,12333],[12353,12374],
			[12380,12388]
		];
//Группа открыток на масленницу
/*
		public static var grMaslen: Array = [
			[6910,6916],[6771,6779],[6848,6850],6890,6743,12215,12213
		];
*/		

//		Группа открыток с пасхой
/*
		public static var GroupPas: Array = [
			[7794,7814],[7726,7732],[7738,7749],[7815,7846]
		];*/

		
/*		public static var groupMas: Array = [
			[6771,6778]
		];*/
		
//		Группа открыток на 9 мая!
/*		public static var Group9: Array = [
			7968,7969,[7996,8008],[8023,8038],[8047,8075],298,[8103,8107],[8109,8114],[8130,8149]
		];*/
		
		public static function resetGroupList(list: Array): void {
			var i: int = 0;
			var count: int = list.length;
			while (i<count) {
				if (list[i] is Array) {
					for (var n:int=list[i][0];n<=list[i][1];n++) {
						list.push(n);
					}
					list.splice(i, 1);
				} else i++;
			}
		}
		
//		public static const icon_ids: Object = {25:126, 85:129, 21:134, 24:133, 104: 125, 105: 132, 106: 128, 115: 131, 144: 127, 84: 130, 10: 135};
		public static var cardGroup: Array = [
			{name:'Поиск', group: 20, url: 'group_search.swf'},
			{name:'Новые', group: 21, filter: function(item: Object): Boolean {
				return item.is_new;
			}},
			{name:'8 Марта', group: 125, filter: function(item: Object): Boolean {
				return (pi_data.Group8.indexOf(item.id) > -1);
			}, styleClass: 'tbir'},
/*			{name:'Масленица', group: 124, filter: function(item: Object): Boolean {
				return (pi_data.grMaslen.indexOf(item.id) > -1);
			}, styleClass: 'tbir'},
*/			
/*			{name:'23 Февр.', group: 123, filter: function(item: Object): Boolean {
				return (pi_data.Group23.indexOf(item.id) > -1);
			}, styleClass: 'tbir'},*/
/*			{name:'Св.Вален.', group: 114, filter: function(item: Object): Boolean {
				return (pi_data.svGroup.indexOf(item.id) > -1);
			}},*/
			{name:'Поздр.', group: 0},
/*			{name:'Пасха', group: 12, filter: function(item: Object): Boolean {
				return (pi_data.GroupPas.indexOf(item.id) > -1);
			}},*/
/*			{name:'9 МАЯ!', group: 22, filter: function(item: Object): Boolean {
				return (pi_data.Group9.indexOf(item.id) > -1);
			}},*/
			{name:'Детские', group: 1},
			{name:'Приколы', group: 2},
			{name:'Рамки', group: 3},
			{name:'Стерео', group: 23, url: 'group_stereo.swf', range: [65536, 75536]},
			{name:'flash', filter: function(item: Object): Boolean {
				return (item.maskClass == pi_pjc) && item.published;
			}},
			{name:'2011-2012', group: 11},
			{name:'Свадебные', group: 15, url: 'group_wedding.swf'},
			{name:'День рож.', group: 16, url: 'group_birthday.swf'},
			{name:'Двойные', filter: function(item: Object): Boolean {
				return (item.maskClass == pi_multicard) && item.published;
			}},
			{name:'Скрап', group: 9},
			{name:'Рамки2', group: 6},
			{name:'Алфавит', group: 10},
			{name:'Зодиак', group: 7},
			{name:'Деньги', group: 8, url: 'group_money.swf'},
//			{name:'Простые', group: 4},
			{name:'Большие', filter: function(item: Object): Boolean {
				return ((item.jpg & 0x11) == 0x01) && item.published;
			}},
			{name:'Архив 1', group: 5, url: 'group_arhive.swf'},
			{name:'Архив 2', group: 22, url: 'group_arhive2.swf'},
			{name:'Архив 3', group: 12, url: 'group_arhive3.swf'}
		]
		
		public static function sprintf(source: String, args: *, rep:String = '%s'): String {
			return Utils.sprintf(source, args, rep);
		}
		
		public static var maskInfoList: Array = [
			{
				id:1,
				group: 6,
				pos: [170, 25, 270, 270],
				colors: [1, 1, 1, 1, 0, 10, 0]
			},{
				id:2,
				group: 6,
				pos: [144, 160, 235, 351],
				colors: [1, 1, 1, 1, 10, 8.6, 0.69]
			},{
				id:3,
				group: 6,
				pos: [131, 47, 245, 178],
				colors: [1, 1, 1, 1, 0, 0, 0]
			},{
				id:4,
				group: 6,
				pos: [247, 37, 215, 242],
				colors: [1, 1, 1, 1, 0, 0, 12]
			},{
				id:5,
				group: 6,
				pos: [91, 29, 309-91, 310-29],
				colors: [1, 1, 1, 1, 10, 0, 0]
			},{
				id:6,
				group: 6,
				pos: [136, 117, 622-136, 369-117],
				colors: [1, 1, 1, 1, 10, 10, 0]
			},{
				id:7,
				group: 6,
				pos: [147, 133, 331-147, 340-133],
				colors: [1, 1, 1, 1, 10, 10, 0]
			},{
				id:10,
				group: 0,
				preview: pi_servers.PREVIEW_URL + '8m4' + pext,
				url: pi_servers.MROOT_URL + '/8m4.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 347, 306],
				colors: [1, 1, 1, 1, 10, 10, 0]
			},
			{
				id:11,
				group: 6,
				preview: pi_servers.PREVIEW_URL + '8m6' + pext,
				url: pi_servers.MROOT_URL + '/8m6.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 140, 140],
				colors: [1, 1, 1, 1, 10, 10, 0]
			},
			{
				id:12,
				group: 6,
				preview: pi_servers.PREVIEW_URL + '8m12' + pext,
				url: pi_servers.MROOT_URL + '/8m12v2.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 80, 80],
				colors: [1, 1, 1, 1, 0, 0, 0]
			},
			{
				id:21,
				group: 0,
				preview: pi_servers.PREVIEW_URL + '8m12' + pext,
				url: pi_servers.MROOT_URL + '/birthday1.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 80, 80],
				colors: [1, 1, 1, 1, 0, 0, 0]
			},
			{
				id:22,
				group: 0,
				preview: pi_servers.PREVIEW_URL + 'p22' + pext,
				url: pi_servers.MROOT_URL + '/p22.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 140, 140],
				colors: [1, 1, 1, 1, 10, 10, 0]
			},
			{
				id:24,
				group: 1,
				preview: pi_servers.PREVIEW_URL + 'smeshar' + pext,
				url: pi_servers.MROOT_URL + '/smeshar.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 361, 295],
				colors: [1.3, 1, 1.2, 1, 0, 0, 0]
			},
			{
				id:25,
				group: 6,
				preview: pi_servers.PREVIEW_URL + 'mistic' + pext,
				url: pi_servers.MROOT_URL + '/mistic.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 80, 80],
				colors: [1, 1, 1, 1, 0, 0, 0]
			}/*,
			{
				id:41,
				group: 2,
				preview: pi_servers.PREVIEW_URL + 'body' + pext,
				url: pi_servers.MROOT_URL + '/body.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 60, 60],
				colors: [1, 1, 1, 1, 10, 10, 0],
				order: 100
			}*/,
			{
				id:84,
				group: 1,
				preview: pi_servers.PREVIEW_URL + 'mv' + pext,
				url: pi_servers.MROOT_URL + '/mv.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 80, 80],
				colors: [1.8, 1.8, 2, 1, 0, 7, 10]
			},
			{
				id:85,
				group: 1,
				preview: pi_servers.PREVIEW_URL + 'mirror' + pext,
				url: pi_servers.MROOT_URL + '/mirror.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 263, 304],
				colors: [1.8, 1.8, 2, 1, 0, 7, 10],
				order: 101
			},
			{
				id:104,
				group: 3,
				preview: pi_servers.PREVIEW_URL + 'candle' + pext,
				url: pi_servers.MROOT_URL + '/candle_dev.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 215, 346],
				colors: [1.8, 1.2, 0, 1, 0, 0, 0],
				price: 2.99
			},
			{
				id:105,
				group: 6,
				preview: pi_servers.PREVIEW_URL + 'volna' + pext,
				url: pi_servers.MROOT_URL + '/volna_dev.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 490, 359],
				colors: [1, 1, 1, 1, 0, 0, 0]
			},
			{
				id:106,
				group: 3,
				preview: pi_servers.PREVIEW_URL + 'i106' + pext,
				url: pi_servers.MROOT_URL + '/candle2_dev.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 477, 366],
				colors: [1, 1, 1, 1, 0, 0, 0]
			},
			{
				id:115,
				group: 2,
				preview: pi_servers.PREVIEW_URL + 'i115' + pext,
				url: pi_servers.MROOT_URL + '/nose.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 260, 287],
				colors: [1, 1, 1, 1, 0, 0, 0]
			},
			{
				id:116,
				group: 6,
				pos: [166, 113, 582-166, 499-113]
			},{
				id:144,
				group: 3,
				preview: pi_servers.PREVIEW_URL + 'i144' + pext,
				url: pi_servers.MROOT_URL + '/morfing_2.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 264, 404],
				colors: [1, 1, 1, 1, 0, 0, 0],
				price: 2.99
			},{
				id:145,
				group: 0,
				preview: pi_servers.PREVIEW_URL + 'i145' + pext,
				url: pi_servers.MROOT_URL + '/pasha.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 100, 100],
				colors: [1, 1, 1, 1, 0, 0, 0]
			},{
				id:218,
				group: 2,
				preview: pi_servers.PREVIEW_URL + 'i218' + pext,
				url: pi_servers.MROOT_URL + '/natural.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 177, 177]
			},{
				id:223,
				group: 6,
				preview: pi_servers.PREVIEW_URL + 'i223' + pext,
				url: pi_servers.MROOT_URL + '/lines_res.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 261, 312]
			},{
				id:262,
				group: 6,
				preview: pi_servers.PREVIEW_URL + 'i262' + pext,
				url: pi_servers.MROOT_URL + '/i262.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 285, 285]
			},{
				id:298,
				group: 0,
				preview: pi_servers.PREVIEW_URL + 'i298' + pext,
				url: pi_servers.MROOT_URL + '/candle_9maya.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 215, 346]
			},{
				id:334,
				group: 3,
				preview: pi_servers.PREVIEW_URL + 'i334' + pext,
				url: pi_servers.MROOT_URL + '/i334.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 360, 263],
				price: 2.99
			},{
				id:335,
				group: 3,
				preview: pi_servers.PREVIEW_URL + 'i335' + pext,
				url: pi_servers.MROOT_URL + '/i335.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 201, 389],
				price: 2.99
			},{
				id:348,
				group: 2,
				preview: pi_servers.PREVIEW_URL + 'i348' + pext,
				url: pi_servers.MROOT_URL + '/lake2.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 200, 200]
			},{
				id:364,
				group: 2,
				preview: pi_servers.PREVIEW_URL + 'i364' + pext,
				url: pi_servers.MROOT_URL + '/knight.swf',
				maskClass: pi_pjc,
				pos: [0, 0, 152, 152],
				price: 2.99
			},{
				id:365,
				group: 2,
				preview: pi_servers.PREVIEW_URL + 'i365' + pext,
				url: pi_servers.MROOT_URL + '/abs.swf',
				maskClass: pi_pjc,
				price: 1
			},
//------------------------------Зодиак----------------------------------------------
			{
				id: [1014,1025],
				group: 7,
				jpg: 0x11
			},{
				id: [457,464],
				group: 7,
				jpg: 0x11
			},{
				id: [471,473],
				group: 7,
				jpg: 0x11
			}
//---------------------------------------03_08_2011- шт.-----------------------------
			,{
				id: [9537,9546],
				ismask: true,
				spots: [
					[[488, 417],[903, 264]],
					[[481, 424],[927, 264]],
					[[481, 424],[927, 264]],
					[[481, 424],[927, 264]],
					[[307, 533],[648, 324]],
					[[307, 533],[648, 324]]
				],
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01,0x01],
				group: 1
			},{
				id: [9547,9558],
				mblur: 2,
				ismask: true,
				jpg: [0x01],
				spots: [
					[[874, 691],[392, 381]],
					[[510, 264],[221, 312]]
				],
				group: 3
			}
//---------------------------------------03_08_2011- шт.-----------------------------
			,{
				id: [9559,9565],
				jpg: [0x01,0x01,0x01,0x01],
				group: 0
			},{
				id: [9566,9567],
				group: 1
			},{
				id: [9568,9581],
				mblur: 2,
				ismask: true,
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01],
				spots: [
					[[246, 359],[490, 206],[561, 441]],
					[[1056, 586],[261, 734]],
					[[265, 437],[1079, 213],[1063, 469],[1069, 788]],
					[[827, 217],[1044, 464],[945, 770]],
					[[415, 385],[886, 652]],,
					[[442, 158],[226, 320]],
					[[463, 175],[236, 324]],
					[[199, 290],[498, 264]]
				],
				group: 3
			}
//---------------------------------------04_08_2011- шт.-----------------------------
			,{
				id: [9582,9583],
				group: 0
			},{
				id: [9584,9591],
				jpg: 0x01,
				mblur: 3,
				ismask: true,
				spots: [
					[[665, 286],[275, 245]],
					[[665, 286],[275, 245]],
					[[774, 520],[1016, 247]],
					[[774, 520],[1016, 247]],
					[[774, 520],[1016, 247]],
					[[774, 520],[1016, 247]],
					[[278, 329],[798, 702]],
					[[278, 329],[798, 702]],
				],
				group: 10
			},{
				id: [9592,9601],
				spots: [
					[[212, 240],[315, 132]]
				],
				group: 2
			},{
				id: [9602,9604],
				mblur: 1,
				ismask: true,
				spots: [
					[[744, 389],[1015, 488]]
				],
				jpg: 0x01,
				group: 3
			},{
				id: [9605,9610],
				jpg: [0x01,0x01,0x11,0x01],
				spots: [
					[[794, 415],[279, 656],[206, 368],[155, 152]],
					[[944, 366],[448, 476]],
					[[261, 197],[407, 346],[588, 333]]
				]
			}
//---------------------------------------05_08_2011- шт.-----------------------------
			,{
				id: [9611,9620],
				jpg: [0x01, 0x01, 0x01],
				spots: [
					,,,
					[[119, 156],[107, 383]]
				],
				group: 0
			},{
				id: [9621,9629],
				jpg: 0x01,
				ismask: true,
				mblur: 2,
				spots: [
					[[289, 461],[659, 468],[640, 898],[404, 1127]],
					[[657, 1050],[401, 742],[688, 633]],
					[[616, 279],[208, 628],[401, 800],[642, 881]],
					[[277, 516],[642, 516],[499, 714]],
					[[261, 972],[227, 430],[571, 396],[647, 855]],
					[[258, 711],[523, 537],[571, 828]],
					[[246, 616],[494, 394],[628, 647]]
				],
				group: 1
			},{
				id: [9630,9640],
				jpg: [0x01, 0x01, 0x01, 0x01],
				ismask: true,
				mblur: 2,
				spots: [
					[[979, 283],[856, 671],[308, 704]],
					[[286, 714],[780, 716],[1017, 301]],
					[[668, 349],[1038, 702]],
					[[539, 367],[977, 666]]
				],
				group: 3
			}
//---------------------------------------06_08_2011- шт.-----------------------------
			,{
				id: 9641,
				group: 0
			},{
				id: 9671,
				group: 0
			},{
				id: 9642,
				jpg: 0x01,
				ismask: true,
				mblur: 3,
				spots: [[640, 231],[825, 427],[435, 379],[391, 647],[942, 701]],
				group: 1
			},{
				id: [9643,9648],
				ismask: true,
				mblur: 3,
				spots: [
					[[275, 308],[789, 683]],
					[[317, 305],[592, 545]],
					[[317, 305],[592, 545]],
					[[317, 305],[592, 545]],
					[[317, 569],[1001, 274]],
					[[317, 569],[1001, 274]]
				],
				jpg: 0x01,
				group: 10
			},{
				id: [9651,9652],
				spots: [
					[[296, 137],[377, 372]]
				],
				group: 1
			},{
				id: [9653,9657],
				group: 2
			},{
				id: [9658,9669],
				ismask: true,
				mblur: 1,
				spots: [
					[[345, 627],[929, 347]],
					[[445, 713],[367, 489],[256, 246]],
					[[318, 734],[741, 440]],
					[[291, 186],[373, 375]],
					[[207, 256],[515, 171],[466, 389]]
				],
				jpg: [0x01, 0x01, 0x01],
				group: 3
			}
//---------------------------------------08_08_2011- шт.-----------------------------
			,{
				id: [9672,9675],
				jpg: [0x01, 0x01],
				group: 0
			},{
				id: [9676,9679],
				mblur: 2,
				ismask: true,
				spots: [
					[[352, 564],[634, 330],[567, 986]],
					[[780, 446],[247, 337]]
				],
				jpg: 0x01,
				group: 1
			},{
				id: [9680,9695],
				mblur: 4,
				ismask: true,
				spots: [
					[[371, 346],[272, 133]],
					[[183, 266],[436, 363]]
				],
				group: 3
			},{
				id: [9696,9700],
				spots: [
					[[127, 164],[145, 355]],
					[[374, 421],[168, 148],[332, 111]],
					[[329, 377],[312, 186]]
				],
				group: 9
			}
//---------------------------------------10_08_2011- шт.-----------------------------
			,{
				id: [9701,9703],
				jpg: [0x01, 0x01],
				group: 0
			},{
				id: [9704,9711],
				ismask: true,
				mblur: 3,
				spots: [
					[[520, 421],[939, 278]],
					[[297, 554],[1001, 250]],
					[[300, 557],[970, 254]],
					[[934, 666],[990, 259]],
					[[934, 666],[990, 259]],
					[[934, 666],[990, 259]]
				],
				jpg: [0x01, 0x01, 0x01, 0x01, 0x01, 0x01],
				group: 1
			},{
				id: [9712,9726],
				ismask: true,
				mblur: 2,
				spots: [
					[[217, 394],[502, 152]],
					[[152, 208],[510, 203],[343, 359]],
					[[141, 180],[355, 272],[546, 332]]
				],
				group: 3
			}
//---------------------------------------11_08_2011- шт.-----------------------------
			,{
				id: [9728,9733],
				jpg: [0x01,0x01,0x01,0x01],
				spots: [
					[[396, 260],[842, 650]],
					[[258, 449],[303, 945]]
				],
				group: 0
			},{
				id: [9734,9741],
				group: 2
			},{
				id: [9742,9755],
				jpg: [0x01,0x01,0x01,0x01],
				ismask: [true],
				mblur: 3,
				spots: [
					[[360, 450],[795, 331]],
					[[352, 414],[961, 605]],
					[[385, 418],[1131, 133]]
				],
				group: 3
			}
//---------------------------------------13_08_2011- шт.-----------------------------
			,{
				id: [9757,9763],
				jpg: [0x01,0x01,0x01],
				spots: [
					[[926, 435],[368, 280],[362, 664]]
				],
				group: 0
			},{
				id: [9764,9770],
				jpg: [0x01,0x01,0x01],
				group: 1
			},{
				id: [9771,9772],
				group: 2
			},{
				id: [9773,9784],
				jpg: [0x01],
				mblur: 3,
				spots: [
					[[339, 369],[962, 668]],
					[[209, 446],[518, 114],[530, 273]]
				],
				group: 3
			}
//---------------------------------------16_08_2011- шт.-----------------------------
			,{
				id: [9786,9794],
				jpg: [0x01, 0x01, 0x01, 0x01],				
				group: 0
			},{
				id: [9795,9798],
				group: 2
			},{
				id: [9799,9806],
				jpg: 0x01,
				mblur: [3, 1, 1],
				ismask: [false, true, true],
				spots: [
					[[372, 431],[998, 441]],
					[[748, 736],[927, 326],[326, 252]],
					[[857, 555],[623, 190],[356, 833]]
				],
				group: 3
			}
//---------------------------------------16_08_2011- шт.-----------------------------
			,{
				id: 9807,
				group: 0
			},{
				id: [9808,9814],
				jpg: 0x01,
				spots: [
					[[271, 285],[1016, 329]],
					[[965, 654],[1014, 264]],,,,,
					[[299, 286],[1026, 312]]
				],
				group: 1
			},{
				id: [9815,9822],
				group: 2
			},{
				id: [9823,9827],
				ismask: [false, true, true],
				mblur: 3,
				spots: [
					[[263, 304],[245, 668],[1045, 278]],
					[[327, 226],[374, 517],[313, 765]],
					[[252, 729],[523, 315],[915, 229]]
				],
				group: 6
			}
//---------------------------------------16_08_2011- шт.-----------------------------
			,{
				id: [9834, 9835],
				group: 0
			},{
				id: [9836, 9841],
				jpg: [true, true],
				spots: [
					,,
					[[216, 173],[235, 426]],
					[[552, 296],[116, 176]]
				],
				group: 1
			},{
				id: [9842, 9855],
				jpg: [true, true, true, true],
				group: 3
			}
//---------------------------------------20_08_2011- шт.-----------------------------
			,{
				id: [9857, 9864],
				group: 0
			},{
				id: [9865, 9870],
				spots: [
					[[946, 484],[274, 381]]
				],
				group: 2
			}
//---------------------------------------21_08_2011- шт.-----------------------------
			,{
				id: [9872, 9887],
				jpg: [
					[0x01,0x01,0x01,0x01,0x01,0x01,0x01]
				],
				spots: [
					[[222, 281],[1083, 278]]
				],
				group: 3
			}
//---------------------------------------21_08_2011- шт.-----------------------------
			,{
				id: [9890, 9898],
				jpg: [
					[0x01,0x01,0x01,0x01,0x01,0x01]
				],
				spots: [
					[[363, 259],[789, 237],[431, 767]]
				],
				group: 0
			},{
				id: [9899, 9907],
				spots: [
					[[372, 149],[690, 292]]
				],
				group: 2
			},{
				id: [9908, 9911],
				jpg: [
					[0x01,0x01]
				],
				spots: [
					[[295, 334],[970, 370]]
				],
				group: 3
			}
//---------------------------------------04_09_2011- шт.-----------------------------
			,{
				id: [9912, 9917],
				jpg: [
					[0x01]
				],
				group: 0
			},{
				id: [9920, 9923],
				jpg: [
					[0x01,0x01,0x01]
				],
				group: 1
			},{
				id: [9924, 9944],
				spots: [
					[[403, 532],[940, 391]],
					[[450, 201],[232, 241]]
				],
				jpg: [
					[0x01,0x11,0x01,0x01,0x01,0x01]
				],
				group: 3
			}
//---------------------------------------04_09_2011- шт.-----------------------------
			,{
				id: [9946, 9957],
				group: 0
			},{
				id: [9958, 9964],
				group: 3
			},{
				id: [9966, 9971],
				group: 9
			}
//---------------------------------------04_09_2011- шт.-----------------------------
			,{
				id: [9973, 9985],
				jpg: [
					0x01,0x01
				],
				group: 3
			},{
				id: [9986, 10003],
				spots: [
					[[401, 375],[246, 134],[506, 766]],
					[[129, 200],[261, 88]]
				],
				jpg: [
					0x01
				],
				group: 2
			},{
				id: [10004, 10016],
				ismask: true,
				mblur: 2,
				spots: [
					[[370, 421],[286, 175]],
					[[157, 379],[318, 247]],
					[[125, 402],[329, 567]]
				],
				group: 3
			}
//---------------------------------------24_09_2011- шт.-----------------------------
			,{
				id: [10018, 10024],
				jpg: [
					0x01,0x01,0x01
				],
				group: 0
			},{
				id: [10025, 10037],
				ismask: true,
				mblur: 2,
				spots: [
					[[622, 326],[1050, 614]],
					[[430, 323],[1055, 295]],
					[[462, 315],[1066, 170]],
					[[491, 310],[1065, 299]],
					[[839, 281],[330, 598]],
					[[825, 342],[327, 597]]
				],
				jpg: [
					0x01,0x01,0x01,0x01,0x01,0x01
				],
				group: 1
			},{
				id: [10038, 10047],
				jpg: [
					0x01,0x01,0x01,0x01,0x01
				],
				group: 3
			}
//---------------------------------------24_09_2011- шт.-----------------------------
			,{
				id: [10049, 10057],
				spots: [
					[[401, 618],[789, 199]],
					[[398, 618],[786, 199]],
					[[490, 470],[837, 466]]
				],
				jpg: [
					0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01
				],
				group: 0
			},{
				id: [10058, 10074],
				jpg: [
					0x01,0x01,0x01
				],
				group: 3
			}
//---------------------------------------24_09_2011- шт.-----------------------------
			,{
				id: [10076, 10079],
				jpg: [
					0x01
				],
				group: 0
			},{
				id: [10080, 10091],
				ismask: true,
				mblur: 2,
				spots: [
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]],
					[[830, 394],[359, 574]]
				],
				jpg: 0x01,
				group: 7
			},{
				id: [10092, 10112],
				jpg: [
					0x01
				],
				group: 3
			}
//---------------------------------------24_09_2011- шт.-----------------------------
			,{
				id: [10114, 10124],
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01],
				group: 0
			},{
				id: [10125, 10132],
				jpg: 0x01,
				group: 1
			},{
				id: [10133, 10149],
				ismask: true,
				mblur: 3,
				spots: [
					[[196, 259],[509, 160]],
					[[975, 420],[591, 584]],
					[[207, 311],[534, 182]]
				],
				group: 3
			}
//---------------------------------------28_09_2011- шт.-----------------------------
			,{
				id: [10151, 10155],
				group: 2
			},{
				id: 10156,
				jpg: 0x01,
				ismask: true,
				spots: [[409, 509],[848, 375]],
				group: 1
			},{
				id: [10157, 10181],
				jpg: [
					0x01,0x01,0x01,0x01,0x01
				],
				ismask: true,
				spots: [
					[[886, 580],[755, 210],[277, 251]],,,,,
					[[194, 233],[456, 185]]
				],
				group: 3
			}
//---------------------------------------28_09_2011- шт.-----------------------------
			,{
				id: [10183, 10190],
				jpg: [0x01],
				group: 0
			},{
				id: [10191, 10197],
				jpg: [0x01],
				group: 2
			},{
				id: [10198, 10215],
				jpg: [0x01,0x01,0x01],
				group: 3
			}
//---------------------------------------07_10_2011- шт.-----------------------------
			,{
				id: 10217,
				group: 0
			},{
				id: [10218, 10243],
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01],
				spots: [
					[[343, 300],[934, 605]],
					[[881, 641],[488, 588],[514, 244],[240, 381]]
				],
				group: 3
			}
//---------------------------------------10_10_2011- шт.-----------------------------
			,{
				id: [10245,10249],
				group: 0
			},{
				id: [10250,10255],
				spots: [
					[[255, 197],[279, 478]],
					[[223, 202],[294, 479]]
				],
				group: 1
			},{
				id: [10256,10278],
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01],
				
				group: 3
			}
//---------------------------------------11_10_2011- шт.-----------------------------
			,{
				id: 10280,
				jpg: 0x01,
				group: 0
			},{
				id: [10281,10304],
				jpg: [0x11, 0x01, 0x01, 0x01],
				ismask: true,
				mblur: 2,
				spots: [
					,[[1026, 249],[739, 442],[984, 691]],
					[[445, 454],[741, 219],[1071, 272],[1039, 679]]
				],
				group: 3
			}
//---------------------------------------12_10_2011- шт.-----------------------------
			,{
				id: [10306,10310],
				jpg: [0x01, 0x01],
				group: 0
			},{
				id: [10311,10315],
				jpg: [0x01],
				spots: [
					,[[228, 203],[513, 315]]
				],
				group: 1
			},{
				id: [10316,10328],
				group: 2
			},{
				id: [10329,10335],
				group: 3
			},{
				id: [10337,10338],
				jpg: 0x01,
				group: 3
			}
//---------------------------------------13_10_2011- шт.-----------------------------
			,{
				id: [10340,10362],
				group: 1
			},{
				id: [10363,10373],
				jpg: [0x01, 0x01, 0x01, 0x01],
				ismask: true,
				mblur: 3,
				spots: [
					[[363, 439],[954, 463]],
					[[454, 491],[1051, 275],[1056, 635]],
					[[346, 442],[1015, 267],[997, 550]],
					[[791, 488],[230, 184],[228, 461],[245, 766]]
				],
				group: 3
			}
//---------------------------------------14_10_2011- шт.-----------------------------
			,{
				id: [10375,10380],
				jpg: [0x01,0x01,0x01,0x01],
				spots: [
					[[1084, 242],[1155, 544]]
				],
				group: 0
			},{
				id: [10381,10389],
				ismask: true,
				mblur: 2,
				jpg: 0x01,
				spots: [
					[[445, 518],[831, 421]],
					[[445, 518],[831, 421]],
					[[445, 518],[831, 421]],
					[[445, 518],[831, 421]],
					[[397, 428],[982, 453],[987, 160],[1021, 744]]
				],
				group: 3
			},{
				id: [10390,10401],
				spots: [
					[[124, 240],[584, 247]],
					[[491, 205],[227, 212]]
				],
				group: 3
			}
//---------------------------------------15_10_2011- шт.-----------------------------
			,{
				id: [10403,10414],
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01],
				spots: [
					[[886, 500],[856, 791]]
				],
				group: 0
			}
//---------------------------------------18_10_2011- шт.-----------------------------
			,{
				id: [10416,10420],
				jpg: [0x01,0x01],
				group: 2
			},{
				id: [10421,10429],
				jpg: 0x01,
				spots: [
					[[382, 472],[937, 265],[965, 653]],
					[[396, 445],[969, 464]]
				],
				group: 3
			},{
				id: [10430,10444],
				spots: [
					[[202, 127],[499, 347]],
					[[279, 194],[546, 241]],
					[[545, 228],[186, 257]]
				],
				group: 3
			}
//---------------------------------------19_10_2011- шт.-----------------------------
			,{
				id: [10446,10448],
				jpg: 0x01,
				group: 0
			},{
				id: [10449,10452],
				jpg: 0x01,
				group: 11
			},{
				id: [10453,10465],
				group: 3
			}
//---------------------------------------20_10_2011- шт.-----------------------------
			,{
				id: [10467,10475],
				jpg: 0x01,
				group: 0
			},{
				id: [10476,10480],
				jpg: 0x01,
				spots: [
					[[412, 326],[851, 304]],
					[[304, 415],[595, 918]],
					[[731, 315],[552, 1002]],,
					[[390, 346],[390, 931]]
				],
				group: 11
			}
//---------------------------------------21_10_2011- шт.-----------------------------
			,{
				id: [10481,10483],
				jpg: [0x01,0x01],
				group: 0
			},{
				id: [10484,10489],
				jpg: 0x01,
				spots: [
					[[677, 206],[312, 250],[1014, 283]]
				],
				group: 11
			},{
				id: [10490,10502],
				jpg: [0x01,0x01,0x01,0x01,0x01],
				ismask: true,
				spots: [
					[[449, 410],[841, 679]],
					[[299, 566],[650, 657]]
				],
				group: 3
			}
//---------------------------------------24_10_2011- шт.-----------------------------
			,{
				id: [10504,10506],
				group: 0
			},{
				id: [10507,10516],
				mbright: [1.9],
				ismask: true,
				mblur: 2,
				spots: [
					,,,,
					[[521, 272],[417, 520]],
					[[431, 216],[332, 361]]
				],
				group: 3
			},{
				id: [10517,10519],
				spots: [
					[[274, 250],[506, 225]]
				],
				group: 2
			}
//---------------------------------------25_10_2011- шт.-----------------------------
			,{
				id: [10521,10527],
				mblur: 3,
				spots: [
					[[324, 237],[583, 675],[902, 258]]
				],
				jpg: [0x01,0x01],
				group: 0
			},{
				id: [10528,10541],
				jpg: [0x01,0x01,0x01,0x01],
				ismask: [,true,true],
				mblur: 2,
				spots: [
					[[230, 358],[1026, 690]],
					[[737, 646],[369, 324],[920, 279]],
					[[847, 562],[657, 195],[374, 815]],
					[[383, 287],[913, 689]],
					[[167, 325],[526, 188]],
					[[217, 155],[446, 407]],
					[[195, 377],[520, 178]],
					[[123, 261],[120, 428],[134, 623]]
				],
				group: 3
			}
//---------------------------------------26_10_2011- шт.-----------------------------
			,{
				id: [10543,10545],
				jpg: 0x01,
				ismask: true,
				mblur: 3,
				spots: [
					[[367, 217],[359, 492],[361, 629]],
					[[381, 454],[994, 398]]
				],
				group: 0
			},{
				id: 10546,
				jpg: 0x01,
				group: 1
			},{
				id: [10547,10560],
				group: 3
			},{
				id: [10561,10566],
				group: 2
			}
//---------------------------------------26_10_2011- шт.-----------------------------
			,{
				id: [10568,10579],
				group: 3
			},{
				id: [10580,10591],
				jpg: [0x01, 0x01],
				mblur: 2,
				spots: [
					[[443, 514],[1036, 391],[1036, 704]],
					[[433, 440],[720, 471],[198, 266]],
					[[178, 199],[513, 359]],
					[[168, 342],[521, 161]],
					[[169, 355],[513, 149]],
					[[190, 307],[508, 299]],
					[[171, 294],[520, 193]],
					[[365, 270],[247, 500]]
				],
				group: 9
			}
//---------------------------------------28_10_2011- шт.-----------------------------
			,{
				id: [10593,10594],
				group: 0
			},{
				id: 10595,
				jpg: 0x01,
				mblur: 6,
				ismask: true,
				spots: [[297, 411],[588, 678]],
				group: 1
			},{
				id: [10596,10610],
				jpg: [0x01,0x01],
				spots: [
					,,[[198, 167],[311, 522]]
				],
				group: 3
			}
//---------------------------------------28_10_2011- шт.-----------------------------
			,{
				id: [10612,10614],
				group: 0
			},{
				id: [10615,10623],
				spots: [
					[[172, 226],[436, 202]],
					[[162, 214],[472, 121],[563, 345]],
					[[512, 232],[188, 177]]
				],
				group: 1
			},{
				id: [10624,10625],
				group: 2
			},{
				id: [10626,10634],
				ismask: true,
				mblur: 1,
				spots: [
					[[457, 351],[206, 228]],
					[[267, 146],[512, 351]],
					[[350, 301],[139, 328],[560, 286]],
					[[377, 324],[196, 406]],
					[[272, 315],[386, 415]]
				],
				group: 9
			}
//---------------------------------------28_10_2011- шт.-----------------------------
			,{
				id: [10635,10637],
				group: 0
			},{
				id: [10638,10639],
				group: 1
			},{
				id: [10640,10641],
				group: 9
			},{
				id: [10642,10648],
				group: 3
			},{
				id: [10649,10655],
				ismask: true,
				mblur: 3,
				spots: [
					[[184, 248],[545, 311]],
					[[188, 239],[402, 291]],
					[[148, 433],[333, 292],[521, 148]],
					[[207, 144],[260, 295],[237, 464]]
				],
				group: 3
			}
//---------------------------------------01_11_2011- шт.-----------------------------
			,{
				id: [10657,10658],
				group: 0
			},{
				id: [10659,10660],
				jpg: 0x01,
				ismask: true,
				mblur: 3,
				spots: [
					[[644, 525],[233, 364],[1066, 239]],
					[[648, 443],[214, 385],[1034, 560]]
				],
				group: 1
			},{
				id: [10661,10672],
				jpg: 0x01,
				group: 7
			},{
				id: [10675,10682],
				spots: [
					,,[[180, 212],[462, 208],[204, 503]]
				],
				group: 3
			}
//---------------------------------------03_11_2011- шт.-----------------------------
			,{
				id: [10683,10684],
				group: 1
			},{
				id: [10685,10691],
				group: 2
			},{
				id: [10692,10705],
				jpg: [0x01, 0x01],
				spots: [
					[[367, 392],[799, 473],[989, 238]],
					[[372, 351],[867, 267],[987, 515]],
					[[209, 223],[490, 218]],
					[[261, 170],[217, 514]]
				],
				group: 3
			}
//---------------------------------------04_11_2011- шт.-----------------------------
			,{
				id: [10706,10708],
				group: 0
			},{
				id: [10709,10724],
				group: 3
			}
//---------------------------------------05_11_2011- шт.-----------------------------
			,{
				id: [10726,10729],
				jpg: [0x01, 0x01, 0x01, 0x01],
				group: 0
			},{
				id: 10730,
				jpg: 0x01,
				group: 1
			},{
				id: [10731,10747],
				jpg: [0x01, 0x01, 0x01],
				group: 3
			}
//---------------------------------------06_11_2011- шт.-----------------------------
			,{
				id: [10750,10751],
				jpg: 0x01,
				group: 0
			},{
				id: [10752,10754],
				ismask: true,
				mblur: 3,
				spots: [
					[[113, 456],[266, 467],[387, 461]],
					[[98, 246],[595, 243]]
				],
				group: 2
			},{
				id: [10755,10756],
				ismask: true,
				mblur: [5,2],
				spots: [
					[[926, 275],[206, 473],[432, 299],[486, 495]],
					[[426, 1013],[397, 413]]
				],
				jpg: 0x01,
				group: 3
			},{
				id: [10757,10758],
				jpg: 0x01,
				group: 11
			},{
				id: [10759,10766],
				group: 3
			},{
				id: [10767,10768],
				ismask: true,
				spots: [
					[[216, 474],[238, 202]],
					[[199, 146],[473, 341]]
				],
				group: 9
			}
//---------------------------------------08_11_2011- шт.-----------------------------
			,{
				id: [10770,10771],
				jpg: 0x01,
				group: 0
			},{
				id: [10772,10777],
				jpg: [0x01,0x01],
				group: 1
			},{
				id: [10778,10789],
				jpg: [0x01,0x01],
				group: 3
			},{
				id: [10790,10791],
				jpg: [0x01,0x01],
				group: 11
			}
//---------------------------------------09_11_2011- шт.-----------------------------
			,{
				id: 10793,
				group: 0
			},{
				id: [10795,10796],
				jpg: 0x01,
				group: 11
			},{
				id: [10806,10811],
				group: 3
			}
//---------------------------------------10_11_2011- шт.-----------------------------
			,{
				id: [10813, 10815],
				jpg: [0x01, 0x01],
				group: 0
			},{
				id: [10816, 10817],
				jpg: 0x01,
				ismask: true,
				spots: [
					[[516, 900],[378, 375]],
					[[604, 388],[967, 500]]
				],
				group: 3
			},{
				id: [10819, 10831],
				group: 3
			},
//---------------------------------------10_11_2011- шт.-----------------------------
			{
				id:10832,
			   	group:0
			},{
				id:[10833,10837],
				group:1
			},{
				id:10838,
				jpg:0x01,
				ismask: true,
				mblur: 3,
				spots:[
					[445, 365],[899, 462]
				],
				group:3
			},{
				id:[10839,10851],
				group:3
			},
//---------------------------------------12_11_2011- шт.-----------------------------
			{
			 id: [10852,10854],
			 jpg: [0x01],
			 group: 0
			},{
			 id: [10855,10861],
			 jpg: [0x01],
			 group: 1
			},{
			 id: [10862,10872], 
			 group:3
			},{
			 id: [10873,10874], 
			 jpg: 0x01, 
			 group: 11
			},
//---------------------------------------13_11_2011- шт.-----------------------------
			{
				id:10875,
				jpg:0x01,
				group:0
			},{
				id:[10876,10879],
				group:0
			},{
				id:[10880,10881],
				jpg:0x01,
				spots:[
					[[959,259],[195,714],[622,722],[1017,758]],
					[[313,317],[529,930]]
				],
				group:3
			},{
				id:[10882,10891],
				group:3
			},{
				id:[10892,10895],
				group:11
			},
//---------------------------------------16_11_2011- шт.-----------------------------
			{																				
				id:10896,
				jpg:0x01,
				group:0
			},{
				id:10897,
				jpg:0x01,
				group:1
			},{
				id:[10898,10902],
				group:1
			},{
				id:[10903,10915],
				group:3
			},{
				id:10916,
				jpg:0x01,
				group:11
			},
//---------------------------------------18_11_2011- шт.-----------------------------
			{																				
				id:10917,
				group:0
			},{
				id:10918,
				jpg:[0x01],
				ismask: true,
	        	spots:[
	        		[347,386],[958,348],[786,615]
	        	],
		        group:1
			},{
				id:10919,
				spots:[[136,167]],
				group:1
			},{
				id:[10920,10921],
				group:1
			},{
				id:[10922,10931],
				group:3
			},{
				id:10932,
				jpd:[0x01],
				ismask: true,
				spots:[
					[561,208],[707,445],[614,670]
				],
				group:11
			},{
				id:[10933,10934],
				jpd:[0x01],
				group:11
			}
 //20.11.2011            																																		
			,{																				
				id:[10935,10936],
				jpg:[0x01],
				group:0
			},{
				id:[10937,10940],
		        group:0
			},{
				id:[10941,10942],
				group:1
			},{
				id:[10943,10953],
				group:3
			},{
				id:[10954,10955],
				jpg:[0x01],
				group:11
			},{
				id:[10956,10957],
				group:11
			},
//22.11.2011            																																		
			{																				
				id:10958,
				group:0
			},{
				id:[10959,10965],
		                group:3
			},{
				id:[10966,10967],
				jpg:[0x01,0x01],
				group:11
			},{
				id:[10968,10975],
				group:11
			},
 //22.11.2011            																																		
			{																				
				id:10976,
				jpg:0x01,
				group: 0
			},{
				id:10977,
				ismask: true,
				mblur: 3,
				spots: [
					[225, 117, 362, 242],[489, 195]
				],
		        group: 2
			},{
				id:[10978,10989],
				group:2
			},{
				id:[10990,10993],
				ismask: [true],
				mblur: [1],
				mbright: [1.8],
				spots: [
					[[505,291],[330,420]],
					[[485,199],[162,419]]
				],
				group: 3
			},
//25.11.2011         	
			{
				id:10994, 
				jpg:[0x01], 
				group: 0
			},{
				id:[10995,10998], 
				group: 1																																	
			},{																				
				id:[10999,11005],
				group:2
			},{
				id:[11006,11014],
				jpg:[0x01],
				group: 11
			},
//26.11.2011            	
			{
				id:[11015,11021], 
				group: 0																																	
			},{																				
				id:[11022,11031],
				group:3
			},{
				id:[11032,11036],
				group: 11
			},
 //28.11.2011
 			{
				id:11037,
				jpg:0x01,
				spots: [[430,232],[406,852]],
				group: 0																																	
			},{
				id:[11038,11039],
				jpg:0x01,
				group: 11																																	
			},{																				
				id:[11040,11041],
				jpg:[0x01],
				spots: [
					[[935,374],[385,357]],
					[[349,299],[935,412]],
				],
				group: 1
			},{
				id:[11042,11048],
				group: 1
			},{
				id:[11049,11053],
				jpg:[0x01],
				ismask: true,
				spots: [
					[[873,310],[409,386]],
					[[888,370],[379,490]],
				],
				group: 11
			},
//30.11.2011       	
			{
				id:[11054,11057],
				group: 1																																	
			},{																				
				id:[11058,11065],
				group: 2
			},{
				id:[11066,11071],
				group: 3
			},{
				id:[11072,11074],
				jpg:[0x01],
				group: 11
			},
 //02.12.2011            	
		 	{
				id:[11075,11076],
				group: 1																																	
			},{																				
				id:[11077,11079],
				spots:[
					[[389,414],[517,412]],
					[[178,218],[527,230]],
					[[158,366],[401,227]]
				],
				group: 1
			},{
				id:[11080,11084],
				group: 1
			},{
				id:11085,
				spots:[
					[[231,180],[244,228]]
				],
				group:2
			},{
				id:[11086,11089],
				group:2
			},{
				id:[11090,11091],
				jpg:[0x01],
				spots:[
					[[456,331],[659,895]],
					[[295,426],[1023,395]]
				],
				group: 11
			},{
				id:[11092,11095],
				group:11
			},
//03.12.2011
			{
				id:[11096,11097],
				jpg: 0x01,
				ismask: true,
				mblur: 4,
				spots: [
					[[319,245],[648,598]],
					[[251,318],[655,299],[501,681]]
				],
				group: 0																																	
			},{																				
				id:11098,
				group: 0
			},{
			    id:[11099,11102],
				spots:[
					[[148,302],[352,478]],
					[[289,178],[318,443]],
					[[232,195],[236,483]],
					[[215,206],[503,259]]
				],
				group: 3
			},{
				id:[11103,11105],
				ismask: true,
				mblur: 6,
				spots: [
					[[220,231],[496,195]],
					[[216,339],[502,190]],
					[[220,282],[491,280]]
				],
				group: 3
			},{
				id:[11106,11112],
				group: 3
			},{
				id:[11113,11116],
				jpg:[0x01],
				group: 11
			}/*,
 //05.12.2011
		 	{
				id:[11118,11120],
				jpg:0x01,
				group: 0																																	
			},{																				
				id:[11121,11131],
				ismask: true,
				mblur: 6,
				spots: [
					[[520,146],[280,270]],
					[[330,196],[542,275]]
				],
				group: 3
			},{
				id:[11132,11134],
				jpg:0x01,
				group: 11
			},
//07.12.2011            	
			{
				id:[11135,11136],
				group: 0																																	
			},{
				id:[11137,11149],
				group: 1
			},{																				
				id:[11150,11158],
				ismask: true,
				mblur: 6,
				spots: [
					[[168,266],[365,151]],
					[[492,241],[119,118]]
				],
				group: 3
			},
//08.12.2011            	
			{																				
				id:[11159,11160],
				jpg:[0x01],
				ismask: true,
				mblur: 4,
				spots: [
					[[379,450],[480,927]],
					[[353,161],[504,434],[546,723],[451,932]]
				],
				group: 11
			},{
				id:11161,
				jpg:0x01,
				group: 11
			},{
				id:[11162,11168],
				spots: [
					[[190,177],[552,138],[446,389]],
					[[172,242],[490,226]],
					[[175,171],[531,189]],
					[[242,248],[461,250]],
					[[171,193],[543,247]],
					[[93,155],[318,145],[554,87]],
					[[320,198],[572,201]]
				],
				group: 11
			},{
				id:[11169,11178],
				group: 11
			},
//10.12.2011            	
			{																				
				id:[11179,11180],
				group: 0
			},{
				id:[11181,11187],
				group: 11
			},
 //11.12.2011            	
		 	{
				id:[11200,11208],
				jpg:[0x01],
				spots: [
					[[405,408],[924,384]],
					[[303,397],[992,403]]
				],
				group: 3
			},{
				id:[11209,11214],
				spots: [
					[[275,197],[387,380]],
					[[167,283],[421,384]],
					[[125,281],[357,350]]
				],
				group: 9
			},{
				id:[11215,11222],
				group: 11
			}*/,
//12.12.2011            	
			{
				id:[11223,11226],
				ismask: [true],
				mblur: [2],
				spots: [
					[[195,179],[488,359]],
					[[230,172],[517,173]]
				],
				group: 1
			},{
				id:[11227,11234],
				group: 3
			},{
				id:[11235,11241],
				jpg:[0x01],
				group: 11
			},
//13.12.2011
			{
				id:[11242,11258],
				jpg:[0x01],
				ismask: [,,true,true],
				mblur: [,,6],
				spots: [
					[[502,226],[369,647]],
					[[509,246],[575,1012]],
					[[387,334],[896,556]],
					[[308,311],[715,337],[529,687]],
					[[278,313],[524,893]]
				],
				group: 3
			},{
				id:[11259,11265],
				group: 11
			},
 //14.12.2011            	
		 	{
				id:11266,
				group:0
			},{
				id:[11267,11286],
				jpg:[0x01],
				spots: [
					[[217,179],[221,501],[220,827],[1023,455]],
					[[227,523],[891,205],[947,651]],
					[[352,424],[957,447]],
					[[374,314],[540,798]],
					[[306, 423],[640, 988]]
				],
				group: 11
			},
//16.12.2011
		 	{
	                id:[11287,11289],
	                jpg:[0x01],
	                group: 0
	        },{
	                id:[11290,11294],
	                group: 1
	        },{
	                id:[11295,11306],
	                jpg:[0x01],
	                group: 11
	        }/*,
 //19.12.2011            	
		 	{
				id:[11307,11312],
				jpg:[0x01],
				group: 0
			},{
				id:[11313,11322],
				jpg:[0x01],
				spots:[
					[[703,218],[183,918]],
					[[251,664],[682,663]]
				],
				group: 11
			}*/,
//20.12.2011            	
			{
				id:[11323,11326],
				group: 0
			},{
				id:[11327,11332],
				group: 2
			},{
				id:[11333,11339],
				group: 3
			},{
				id:[11340,11356],
				jpg:[0x01],
				ismask: [true],
				mblur: [5],
				spots:[
					[[491,516],[439,883]],,,
					[[237,228],[508,223]],
					[[284,195],[480,201]],
					[[191,187],[518,308]],
					[[176,224],[504,218]]
				],
				group: 11
			},
//25.12.2011     
			{
				id:[11357,11363],
				jpg:[0x01],
				spots:[
					[[697,221],[187,928]]
				],
				group: 0
			},{
				id:[11364,11373],
				spots:[
					[[206,175],[411,211]],
					[[168,131],[570,180]]
				],
				group: 2
			},{
				id:[11374,11385],
				spots:[
					[[412,104],[219,349]],
					[[486,224],[233,209]]
				],
				group: 11
			},
//25.12.2011            	
			{
				id:[11386,11405],
				ismask: [false,false,false,true,true,true],
				mblur: 3,
				spots:[
					[[174,180],[500,241]],
					[[200,242],[515,242]],
					[[189,222],[509,223]],
					[[263,232],[499,186]],
					[[234,234],[457,201]],
					[[228,305],[460,452]]
				],
				group: 11
			},
//26.12.2011 
			{
				id:[11406,11427],
				jpg:[0x01, 0x01],
				ismask: [true,false,false,true],
				mblur: 5,
				spots:[
					[[959,345],[615,428]],
					[[274,324],[691,426]],
					[[126,151],[343,261],[560,344]],
					[[151,166],[264,456]]
				],
				group: 11
			}, 
//27.12.2011 
			{
				id:[11428,11431],
				jpg:0x01,
				group: 0
			},{
				id:[11432,11437],
				spots:[
					[[470,127],[232,358]],
					[[168,305],[523,311]]
				],
				group: 3
			},{
				id:[11438,11448],
				jpg:0x01,
				group: 11
			},
//28.12.2011 
		    {
				id:[11449,11472],
				jpg:[0x01,0x01],
				spots:[
					,,
					[[239,224],[488,218]],
					[[271,237],[469,211]]
				],
				group: 11
			},
//02.01.2012 
			{
				id:[11473,11475],
				jpg:[0x01],
				group: 0
			},{
				id:[11476,11481],
				spots:[
					[[235,209],[488,210]],
					[[203,189],[504,157]]
				],
				group: 1
			},{
				id:[11482,11494],
				spots:[
					[[181,77],[326,163],[543,89]],
					[[247,271],[429,253],[599,239]],
					[[298,57],[377,140]],
					[[145,200],[386,130]]
				],
				group: 2
			},{
				id:[11495,11500],
				group: 11
			},
//06.01.2012 
		   	{
				id:[11501,11517],
				ismask: true,
				mblur: 3,
				spots:[
					[[152,345],[281,494]],
					[[444,394],[232,469]],
					[[165,210],[350,346]],
					[[336,152],[203,358]],
					[[156,209],[339,374]],
					[[259,302],[424,389]],
					[[178,211],[384,387]]
				],
				group: 0
			},{
				id:[11518,11532],
				group: 2
			},{
				id:[11533,11535],
				extend: 'gray',
				colors: [
							[1.1, 1, 0.9, 1, 0, 0, 0],
							[1.1, 1, 0.9, 1, 0, 0, 0],
							[1.1, 1, 0.9, 1, 0, 0, 0]
						],
				group: 2
			},{
				id:[11536,11543],
				jpg:[0x01,0x01],
				ismask: [true],
				mblur: [8],
				spots:[
					[[620,235],[957,627],[472,728]],
					[[948,605],[287,197]],
					[[258,160],[196,479]],
					[[177,164],[525,185]]
				],
				group: 9
			},
 //07.01.2012 
			{
				id:[11544,11571],
				ismask: [false, false, false, true, false, false, true],
				spots:[
					[[225,242],[462,141],[462,378],[224,475]],
					[[222,191],[438,189],[336,438]],
					[[186,340],[420,321]],
					[[448,189],[276,409]],
					[[226,228],[435,326]],
					[[235,227],[308,464]],
					[[283,176],[435,441]],
					[[301,201],[300,390]]
				],
				group: 9
			},
 //09.01.2012 
           	{
				id:[11572,11575],
				group: 2
			},{
				id:[11576,11597],
				group: 3
			},
 //10.01.2012 
          	{
				id: [11598,11602],
				jpg: [0x01,0x01],
				group: 0
			},{
				id: [11603,11607],
				group: 2
			},{
				id: [11608,11628],
				jpg: [0x01],
				spots: [
					[[314,334],[656,867]],
					[[98,142],[350,191],[594,328]],
					[[184,224],[515,251]],
					[[164,219],[523,223]],
					[[180,207],[519,212]],
					[[296,195],[237,468]],
					[[239,190],[228,454]]
				],
				group: 3
			},
//11.01.2012 
           	{
				id: [11629,11630],
				group: 0
			},{
				id: [11631,11651],
				jpg: [0x01],
				mblur: 3,
				spots: [
					[[217,272],[812,404],[216,732]],
					[[223, 442],[520, 126],[516, 273]],
					[[223,189],[322,521],[537,521]]
				],
				group: 3
			},
//15.01.2012 
		     {
				id: [11657,11674],
				spots: [
					[[220,237],[524,239]],
					[[202,291],[431,180]],
					[[347,130],[565,354]]
				],
				group: 3
			},{
				id: [11675,11678],
				group: 11
			},
 //16.01.2012 
          	{
				id: 11679,
				group: 0
			},{
				id: [11680,11701],
				ismask: [false, true],
				spots: [
					[[227,218],[507,126],[517,306]],
					[[210,176],[371,218],[529,264]],
					[[209,140],[315,320]],
					[[189,134],[513,136]],
					[[114,132],[341,238]],
					[[183,230],[521,222]],
					[[320,214],[129,313]]
				],
				group: 3
			},{
				id: [11702,11705],
				jpg: [0x01],
				ismask: [false, false, true],
				spots: [
					[[970,265],[971,644]],
					[[601,452],[270,786]],
					[[949,269],[617,571]]
				],
				group: 11
			},
//17.01.2012 
			{
				id: [11706,11709],
				jpg: [0x01],
				group: 0
			},{
				id: [11710,11728],
				ismask: [,,,true],
				spots: [
					[[165,232],[424,225]],
					[[181,201],[517,201]],
					[[422,114],[226,324]],
					[[106,128],[368,234],[584,400]]
				],
				group: 3
			},
//18.01.2012 
           	{
				id: [11729,11732],
				group: 2
			},{
				id: [11733,11749],
				jpg: [0x01],
				mblur: 2,
				ismask: [,,true,true],
				spots: [
					[[315,368],[999,451]],
					[[344,324],[999,446]],
					[[192,163],[442,258]],
					[[264,165],[506,246]],
					[[208,221],[495,226]],
					[[178,230],[509,240]],
					[[182,223],[478,240]]
				],
				group: 3
			},
//19.01.2012 
			{
				id: [11750,11755],
				jpg: [0x01],
				group: 0
			},{
				id: [11756,11774],
				jpg: [0x01],
				ismask: [true,,true],
				spots: [
					[[499,412],[630,903],[328,952]],
					[[663,533],[336,1008]],
					[[494,408],[338,975],[643,902]],
					[[655,574],[345,1008]],
					[[243,228],[325,503]],
					[[167,194],[454,221]]
				],
				group: 3
			},
//22.01.2012 
			{
				id: [11775,11786],
				mblur: 3,
				ismask: [true],
				spots: [
					[[361,178],[546,300]],
					[[132,221],[357,272]]
				],
				group: 0
			},{
				id: [11787,11799],
				ismask: [true,,,true],
				mblur: 3,
				spots: [
					[[133,291],[486,202]],
					[[529,240],[169,240]],
					[[211,178],[289,493]],
					[[205,297],[494,214]]
				],
				group: 3
			},
//23.01.2012 
           	{
				id: [11800,11802],
				jpg: [0x01],
				group: 0
			},{
				id: [11803,11817],
				ismask: [,,true],
				spots: [
					[[179,228],[522,212]],
					[[213,220],[523,213]],
					[[180,222],[463,139]]
				],
				group: 3
			},{
				id: [11818,11822],
				jpg: [0x01],
				group: 11
			},
//25.01.2012 
           	{
				id: [11823,11824],
				jpg: [0x01],
				group: 0
			},{
				id: [11825,11832],
				group: 1
			},{
				id: [11833,11844],
				group: 3
			},
//30.01.2012
			{
				id: [11845,11847],
				group: 0
			},{
				id: [11848,11869],
				spots: [
					[[174,146],[514,120],[374,352]],
					[[228,207],[512,198]],
					[[197,230],[507,228]],
					[[188,221],[485,229]],
					[[188,207],[511,204]],
					[[245,136],[517,200]]
				],
				group: 3
			},
 //31.01.2012 
           	{
				id: [11870,11880],
				jpg: [0x01,0x01,0x01,0x01,0x01],
				ismask: true,
				spots: [
					[[283,256],[578,275],[452,635]],
					[[227,280],[586,241],[447,584]],
					[[273,245],[630,269],[369,615]],
					[[455,248],[799,274],[557,605]],
					[[225,259],[595,226],[439,570]],
					[[365,120],[574,149],[421,305]],
					[[270,186],[456,134],[436,316]],
					[[137,182],[343,181],[547,175]],
					[[199,146],[507,322]],
					[[499,141],[188,336]]
				],
				group: 1
			},{
				id: [11881,11897],
				spots: [
					[[176,213],[533,219]],
					[[220,320],[482,178]],
					[[194,262],[495,257]],
					[[204,286],[530,182]],
					[[189,202],[464,140]]
				],
				group: 3
			},
//01.02.2012 
			{																				
				id: [11898,11907],
				group: 1
			},{
				id: [11908,11917],
				group: 2
			},{
				id: [11918,11924],
				group: 3
			},
 //02.02.2012 
			{																				
				id: [11925,11934],
				group: 1
			},{
				id: [11935,11945],
				group: 2
			},{
				id: [11946,11954],
				group: 3
			},
//04.02.2012 
			{																				
				id: [11955,11957],
				jpg: [0x101],
				spots: [
					[[979,512],[299,503]]
				],
				group: 0
			},{
				id: [11958,11970],
				group: 1
			},{
				id: [11971,11978],
				jpg: [0x01],
				ismask: true,
				mblur: 2,
				spots: [
					[[155,379],[468,389],[294,752],[995,391]],
					[[316,341],[1014,380]],
					[[185,189],[533,148],[393,365]],
					[[243,153],[500,226]],
					[[197,222],[461,167]],
					[[264,214],[247,466]]
				],
				group: 3
			},
 //06.02.2012 
			{																				
				id: [11979,11986],
				jpg: 0x111,
				group: 0
			},{
				id: [11987,11998],
				group: 3
			},
//07.02.2012 
			{																				
				id: [11999,12001],
				jpg: 0x111,
				group: 0
			},{
				id: [12002,12012],
				group: 1
			},{
				id: [12013,12025],
				spots: [
					[[241,153],[493,189],[231,197]],
					[[224,116],[428,362]]
				],
				group: 2
			},
 //09.02.2012 																																	
			{
				id: [12026,12032],
				group: 0
			},{																				
				id: [12033,12045],
				jpg: [0x01],
				spots: [
					[[281,409],[1031,202],[730,539],[1068,547]],
					[[236,333],[430,488],[1029,393]]
				],
				group: 3
			},{
				id: [12046,12054],
				jpg: [0x01],
				spots: [
					[[469,324],[853,328]],
					[[233,835],[694,820]]
				],
				group: 11
			},
 //12.02.2012																																		
			{																				
				id: [12055,12063],
				jpg: [0x111],
				spots: [
					[[243, 249],[551, 159]]
				],
				group: 0
			},{
				id: [12064,12070],
				group: 2
			},{
				id: [12071,12082],
				spots: [
					[[319,188],[552,206]],
					[[222,164],[330,456]],
					[[149,237],[552,227]],
					[[177,263],[335,383]]
				],
				group: 3
			},{
				id: [5053,4821,4927,6225,6253,6272,6325,6380,6381,6165,6129,6101,6042,6040,4958,4957,4926,4925,4924,4852,4819,4818,5054,
					5052,4749,4748,6217,6218,6219,6221,6222,6223,6224,6246,6247,6247,6249,6250,6251,
					6252,6270,6271,6326,6327,6328,6329,6330,6331,6350,6351,6376,6377,6378,
					6379],
				spots: [
					[[197, 203],[530, 261]],
					[[166, 409],[128, 146],[292, 225]],
					[[354, 171],[128, 180],[521, 233]],
					[[259, 238],[462, 512],[931, 299],[1011, 526],[1004, 770]],
					[[433, 331],[861, 684]],
					[[278, 528],[162, 314],[356, 153]],
					[[279, 282],[464, 271]],
					[[208, 199],[508, 247]],
					[[392, 164],[557, 193]]
				],
				ismask: true,
				mblur: 3,
				group: 0
			},
//13.02.2012 
			{																				
				id: [12083,12084],
				jpg: [0x101],
				spots: [
					[[269,291],[989,345]]
				],
				group: 0
			},{
				id: [12085,12094],
				spots: [
					[[186,179],[356,232]]
				],
				group: 2
			},{
				id: [12095,12098],
				ismask: [,,true],
				spots: [
					[[219,230],[427,255]],
					[[108,139],[548,256]],
					[[197,188],[330,477]],
					[[195,156],[507,157]]
				],
				group: 3
			},{
				id: [12101,12110],
				group: 3
			},
//15.02.2012 																																		
			{																				
				id: [12111,12117],
				ismask: [true],
				spots: [
					[[233, 241],[432, 184]],
					[[167,230],[495,233]]
				],
				group: 1
			},{
				id: [12118,12124],
				group: 2
			},{
				id: [12125,12141],
				jpg: [0x01],
				spots: [
					[[1054,226],[1058,603],[355,396]],
					[[1028,408],[327,467]]
				],
				group: 3
			},
//16.02.2012																																		
			{																				
				id: [12142,12146],
				jpg: [0x111],
				group: 0
			},{
				id: [12147,12158],
				ismask: [,,true],
				mblur: [,,2],
				spots: [
					[[184,211],[518,205]],
					[[184,157],[497,148]],
					[[232,219],[477,206]],
					[[214,262],[503,259]],
					[[156,194],[534,185]]
				],
				group: 3
			},{
				id: [12159,12162],
				group: 7
			},{																				
				id: 52163,
				order: 1,
				group: 0
			},
 //19.02.2012 
			{																				
				id: [12163,12171],
				jpg: [0x101,0x101,0x101,0x101,0x111],
				group: 0
			},{
				id: [12172,12184],
				jpg: [0x01,0x01,0x01,0x01,0x01],
				spots: [
					[[341,339],[679,859],[246,986]],
					[[444,273],[214,635],[1097,482]],
					[[410,309],[1008,398]],
					[[327,384],[830,259]]
				],
				group: 3
			},
 //20.02.2012 на 23
			{																				
				id: [6099,6100,6355,6353,6354,6352,6301,6299,6300,6298,6296,6130,6128,6102,6080,6081,6079,
			6078,6077,4971,4972,4970],
				spots: [
					[[180, 174],[515, 240]],
					[[151, 331],[566, 323]]
				],
				group: 0
			},
//20.02.2012 
			{																				
				id: [12185,12193],
				jpg: [0x101,0X101],
				group: 0
			},{
				id: [12194,12201],
				group: 1
			},{
				id: [12202,12206],
				group: 2
			},{
				id: [12207,12209],
				group: 3
			},
//24.02.2012 
          	{
				id: [12210,12215],
				jpg: [0x111],
				spots: [
					[[174,256],[551,260]],
					[[183,217],[511,227]]
				],
				group: 0
			},{
				id: [12216,12221],
				jpg: [0x01],
				spots: [
					[[374,274],[585,128],[828,125],[1072,241],[281,533],[582,597],[868,586],[1132,511]],
					[[739,169],[1071,163],[1155,394],[857,410],[554,421],[285,412]],
					[[631,222],[596,586],[215,397]]
				],
				group: 1
			},{
				id: [12222,12237],
				spots: [
					[[351,593],[163,468]],
					[[165,142],[147,498]],
					[[251,173],[252,520]],
					[[243,331],[582,168],[578,485]],
					[[108,139],[368,194],[104,341]],
					[[200,169],[362,327]]
				],
				group: 3
			},
//27.02.2012 
			{
				id: [12238,12241],
				jpg: [0x111],
				group: 0
			},{
				id: [12242,12246],
				jpg: [0x01,0x01,0x01],
				spots: [
					[[208,227],[211,515],[644,500],[1060,685],[1057,371]],
					[[1113,270],[1115,554],[701,447],[298,268],[292,545]],
					[[400,148],[401,428],[402,712],[955,447]],
					[[189,115],[548,114],[375,245],[188,356],[549,359]],
					[[195,121],[373,125],[577,163],[288,353]]
				],
				group: 1
			},{
				id: [12247,12265],
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01],
				ismask: [,,,,,true,true,true,true,true],
				mblur: 2,
				spots: [
					[[271,373],[825,419],[707,161],[1091,219],[683,698],[1105,688]],
					[[1059,263],[1065,815],[408,498]],
					[[363,312],[973,356]],
					[[410,308],[988,363]],
					[[988,379],[294,347]],
					[[416,408],[795,283]],
					[[230,256],[522,160],[525,353]],
					[[321,173],[530,185]],
					[[375,161],[561,278]],
					[[177,223],[465,144]]
				],
				group: 3
			},{
				id: [12266,12269],
				jpg: [0x01,0x01,0x01,0x01],
				ismask: [true],
				mblur: 2,
				spots: [
					[[844,366],[442,388]],
					[[427,689],[976,252]]
				],
				group: 11
			},
//28.02.2012 
            {
				id: [12270,12275],
				spots: [
					[[155,227],[460,212]]
				],
				group: 0
			},{
				id: [12276,12284],
				group: 1
			},{
				id: [12285,12296],
				group: 3
			},
//29.02.2012 
			{
				id: [12297,12306],
				ismask: true,
				spots: [
					[[194,177],[184,391]],
					[[462,166],[228,256]],
					[[153,492],[396,492]]
				],
				group: 0
			},{
				id: [12307,12313],
				jpg: [0x01,0x01,0x01,0x01],
				spots: [
					[[297,475],[714,317],[718,961]],
					[[384,312],[307,889]],
					[[350,241],[369,710],[1013,358]],
					[[306,253],[864,188],[1030,600]],
					[[144,155],[386,153]],
					[[370,180],[155,502]],
					[[171,219],[508,214]]
				],
				group: 1
			},{
				id: [12314,12323],
				mblur: 2,
				ismask: [,,true,true],
				spots: [
					[[195,212],[476,146]],
					[[170,233],[537,233]],
					[[225,296],[303,597]],
					[[285,187],[222,473]],
					[[246,180],[202,524]]
				],
				group: 3
			},
//03.03.2012 
            {
				id: [12324,12333],
				jpg: 0x111,
				spots: [
					[[477,291],[424,515]],
					[[217,234],[484,226]]
				],
				group: 0
			},{
				id: [12334,12345],
				group: 1
			},{
				id: [12346,12350],
				group: 3
			},
 //05.03.2012 
            {
				id: [12351,12372],
				jpg: [0x111],
				group: 0
			},{
				id: 12374,
				group: 0
			},{
				id: [12375,12379],
				group: 2
			},
//06.03.2012 
            {
				id: [12380,12388],
				group: 0
			},{
				id: [12389,12403],
				ismask: [true,false,false,false,true],
				jpg: [0x01,0x01,0x01,0x01,0x01,0x01],
				spots: [
					[[510,331],[825,470],[567,614]],
					[[172,351],[1065,330],[620,454]],
					[[908,381],[389,381]],
					[[581,275],[1052,462]],
					[[375,387],[891,277]]
					],
					group: 3
			},{
				id: [12404,12406],
				jpg: [0x01,0x01,0x01],
				group: 11
			},
//09.03.2012 
            {
				id: [12420,12425],
				jpg: [0x111],
				group: 0
			},{
				id: [12426,12444],
				group: 3
			} 
		];
		
		public static const filters: Object = {'ColorMatrixFilter':ColorMatrixFilter};
		
		public static function defaultMI(a_id: int): Object {
			return {
				id			: a_id,
				group		: 5,
				colors		: [1, 1, 1, 1, 0, 0, 0],
				url 		: pi_servers.MROOT_URL + '/i' + a_id + '.png',
				maskClass 	: pi_pngcard,
				preview 	: pi_servers.PREVIEW_URL + 'i' + a_id + pext
			};
		}
		
		public static function infoFromID(a_id: int): Object {
			for each (var data: Object in maskInfoList) {
				if (data && (data.id == a_id)) return data;
			}
			return null;
		}
		
		public static function toMaskInfo(data: Object, matrix: Object=null): pi_maskInfo {
			return uif_draw.applyOptions(
						new pi_maskInfo(data.id, data.url, data.maskClass,
								data.pos?(new Rectangle(data.pos[0], data.pos[1], data.pos[2], data.pos[3])):null,
								new ColorTransform(data.colors[0], data.colors[1], data.colors[2], data.colors[3], 
													data.colors[4], data.colors[5], data.colors[6]),
								matrix, data.price, data.extend),
						data, false) as pi_maskInfo;
		}

		public function pi_data() {
			super();
		}
		
		public static function resetData(infoList: Array, groupSet: int = -1, setNew: Boolean=true): void {
			var i: int;
			
			function createElement(source: Object, index: int, num: int): Object {
				var setObj: Object = new Object();
				for (var i: String in source) {
					if (i != 'id') {
						if (source[i] is Array)
							setObj[i] = source[i][num];
						else setObj[i] = source[i];
					} else setObj.id = index;
				}
				return setObj;
			}
			
			for (i = 0; i<infoList.length; i++) {
				var obj: Object = infoList[i];
				if (obj && (obj.id is Array)) {
					infoList.splice(i, 1);
					i--;
					var num	: int = 0;
					var n	: int;
					if (obj.id.length == 2) {
						for (n = obj.id[0]; n <= obj.id[1]; n++) {
							infoList.push(createElement(obj, n, num));
							num++;
						}
					} else {
						for (n = 0; n <= obj.id.length; n++) {
							infoList.push(createElement(obj, obj.id[n], num));
							num++;
						}
					}
				}
			}
			
			
/*			for (i = 0; i<infoList.length; i++) {
				var obj: Object = infoList[i];
				obj.group = (obj.group>=100)?(obj.group-100):obj.group;
				if (obj.id is Array) {
					var index: int = obj.id[1] - obj.id[0];
					for (var n: int = obj.id[1]; n > obj.id[0]; n--) {
						var copy: Object = uif_draw.union({}, obj);
						copy.id = n;
						if (obj.spots) copy.spots = obj.spots[index]; 
						infoList.push(copy);
						index--;
					}
					obj.id = obj.id[0];
					if (obj.spots) obj.spots = obj.spots[0]; 
				}
			}*/
			
			infoList.sortOn('id', Array.NUMERIC);
			for (i = 0; i<infoList.length; i++) {
				var data: Object = infoList[i];
				if (!data) {
					trace(infoList[i - 1].id);
					continue;
				}
				if (setNew && (i >= infoList.length - 100)) infoList[i].is_new = true;
				if (groupSet > -1) {
					data.group = groupSet;
					var tmpl: Object = pi_data.infoFromID(infoList[i].id);
					if (tmpl) infoList[i] = uif_util.union(tmpl, data);
				} else data.group = (data.group>=100)?(data.group-100):data.group;
				if (data.spots) data.maskClass = pi_multicard;
				if (!data.jpg) data.jpg = 0x11; // С 12.01.2011 все открытки в формате JPG
				if (!data.maskClass) data.maskClass = pi_pngcard;
				if (!data.hasOwnProperty('published')) data.published = true;
				if (!data.colors) data.colors = [1, 1, 1, 1, 0, 0, 0];
				if ((data.maskClass == pi_pjc) && !data.pos) 
					data.pos = [0, 0, 650, 650];
				if (data.extend == 'gray') data.extend = {
												filters: {
													ColorMatrixFilter: [
														0.3, 0.6, 0.1, 0.0, 0.0,
														0.3, 0.6, 0.1, 0.0, 0.0,
														0.3, 0.6, 0.1, 0.0, 0.0,
														0.0, 0.0, 0.0, 1.0, 0.0
													]
												}
											}
				if (!data.preview) {
//					data.url = pi_servers.MROOT_URL + '/i' + data.id + '.png';
					data.preview 	= pi_servers.PREVIEW_URL + 'i' + data.id + pext;
				}
//				Акция: все бесплатно!
//				data.price = 0;
			}
		}
	}
}